package com.nwork.cateye.adapter;


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import com.nwork.cateye.fragment.TopImageFragment;


import java.util.List;

/**
 * ImageViewPager的adapter
 * PagerAdapter只加载三张 超过三张的图片会销毁
 */
public class ImageViewPagerAdapter extends FragmentStatePagerAdapter {

    private List<String> imgUrls;

    public ImageViewPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return TopImageFragment.getFragmentInstance();
    }

    @Override
    public int getCount() {
        return 1000;
    }
}
